package cn.animal; 

public class DepartmentManCollection extends ZooPeopleCollection{ 

private DepartmentInfo departmentBelongs; 

public DepartmentInfo getDepartmentBelongs() { 

return departmentBelongs; 

} 

public void setDepartmentBelongs(DepartmentInfo departmentBelongs) { 

this.departmentBelongs = departmentBelongs; 

} 

public String displayAllPeople(){ 

String displayStr = ""; 

displayStr += this.departmentBelongs.getDepartmentName() + this.departmentBelongs.getDepartmentLoc(); 

for (ZooPeople currentPeople:this.peopleList){ 

displayStr += currentPeople.getzooPeopleName(); 

} 

return displayStr; 

} 

}